#ifndef FILE_QT_H_
#define FILE_QT_H_

#include <stdint.h>
#include <QFile>

#include "../core/FileInterface.h"

namespace opennav {

class QtFile : public FileInterface {
public:
	QtFile(const QString& filePathName, QObject* parent=0);
	~QtFile();
//	virtual ~BadaFile();
//
public:
	bool seek(int32_t pos);
	bool read(void* buffer, int32_t size, int32_t& read_bytes);
	bool close();
	bool size(int32_t& size);
	bool position(int32_t& position);
	bool exists() const;
	bool readable() const;

private:
	QFile* file;
};

}

#endif
